xml.instruct! :xml, :version=>"1.0"
xml.rss(:version => "2.0") do
  xml.channel do
    xml.title("Tous mes livres")
    xml.language('fr-FR')
    xml.link("http://books.com")
    xml.description("La liste de tous mes livres")
    xml.pubDate(CGI.rfc1123_date(@books.last.updated_at))
    
    for book in @books do  
      xml.item do
        xml.title(book.title)
        xml.description(book.author)
        xml.pubDate(CGI.rfc1123_date(book.updated_at))
				xml.category()
        xml.link("http://localhost:3000/books/" + book.id.to_s)
        xml.guid("http://localhost:3000/books/" + book.id.to_s)
      end
    end
  end
end